import request from '@/utils/request'

// 查询商城订单列表
export function listShop_order(query) {
  return request({
    url: '/model/shop_order/list',
    method: 'get',
    params: query
  })
}

// 查询商城订单详细
export function getShop_order(id) {
  return request({
    url: '/model/shop_order/' + id,
    method: 'get'
  })
}

// 新增商城订单
export function addShop_order(data) {
  return request({
    url: '/model/shop_order',
    method: 'post',
    data: data
  })
}

// 修改商城订单
export function updateShop_order(data) {
  return request({
    url: '/model/shop_order',
    method: 'put',
    data: data
  })
}

// 删除商城订单
export function delShop_order(id) {
  return request({
    url: '/model/shop_order/' + id,
    method: 'delete'
  })
}

// 导出商城订单
export function exportShop_order(query) {
  return request({
    url: '/model/shop_order/export',
    method: 'get',
    params: query
  })
}